package com.helloscala.common

/**
 * Created by yangjing on 14-1-18.
 */
trait DBEnum {
  this: Enumeration =>

  import slick.driver.JdbcDriver.simple._

  implicit val enumMapper = MappedColumnType.base[Value, Int](_.id, this.apply)
}
